package com.woniuxy.controller;

import com.woniuxy.utils.MyException;
import com.woniuxy.service.ExceptionTestServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: 马宇航
 * @Todo: controller层继续往外抛出异常
 * @DateTime: 22/02/11/0011 下午 2:43
 * @Component: 成都蜗牛学苑
 **/
@Controller
@RequestMapping("/ex")
public class ExceptionTestController {
    @Autowired
    ExceptionTestServiceImpl exceptionTestServiceImpl;
    @RequestMapping("/test")
    public String testE(){
        String s = exceptionTestServiceImpl.testE();
        return "success";
    }
}
